package com.cj.http;

import com.cj.models.ProductModel;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@RestController
@RequestMapping(path = "/prods")
public class ProdsForPost {

    @PostMapping()
    public String newProd(@RequestBody @Valid ProductModel productModel){
        System.out.println(productModel);
        return "test";
    }

}
